package joney.main.perspectives;



import joney.main.views.AccountsOverview;
import joney.main.views.AccountsView;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.views.IViewDescriptor;


public class AccountPerspective implements IPerspectiveFactory {

	public static final String ID = "joney.accountperspective";
	
	public void createInitialLayout(IPageLayout layout) {
		
		layout.addPerspectiveShortcut(ReportPerspective.ID);
		
		String editorArea = layout.getEditorArea();

		layout.setEditorAreaVisible(false);
		layout.setFixed(true);
		
		layout.addStandaloneView(AccountsOverview.ID, true, IPageLayout.LEFT, 0.2f, editorArea);
		layout.addStandaloneView(AccountsView.ID,false, IPageLayout.BOTTOM, 0.5f, editorArea);
	}

}
